<?php

namespace App\Models\Logs\UserLoginLog;

use Eloquent;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Carbon;

/**
 * App\Models\Logs\UserLoginLog\UserLoginLog
 *
 * @property int         $id
 * @property string      $user_id    用户id
 * @property string      $device     登陆设备
 * @property string      $user_agent 登陆UA
 * @property Carbon|null $created_at
 * @property Carbon|null $updated_at
 * @method static Builder|UserLoginLog newModelQuery()
 * @method static Builder|UserLoginLog newQuery()
 * @method static Builder|UserLoginLog query()
 * @method static Builder|UserLoginLog whereCreatedAt($value)
 * @method static Builder|UserLoginLog whereDevice($value)
 * @method static Builder|UserLoginLog whereId($value)
 * @method static Builder|UserLoginLog whereUpdatedAt($value)
 * @method static Builder|UserLoginLog whereUserAgent($value)
 * @method static Builder|UserLoginLog whereUserId($value)
 * @mixin Eloquent
 */
class UserLoginLog extends Model
{
    use HasFactory;

    protected $table = 'user_login_logs';
    protected $fillable
                     = [
            "user_id",
            "device",
            "user_agent",
        ];
}
